<?php
class XhtmlBuilder {
	
	/**
	 * Private members
	 * @var string
	 */
	private $m_xhtml = "";
	private $m_style = "";
	private $m_title = "";
	private $m_errors = "";

	/**
	 * 
	 * Constuctor that initiates private members
	 * @param string $xhtml
	 * @param string $style
	 * @param string $title
	 * @param string $errors
	 */
	public function __construct($xhtml, $style, $title, $errors) {
		$this->m_xhtml = $xhtml;
		$this->m_style = $style;
		$this->m_title = $title;
		$this->m_errors = $errors;
		
	
	}
	
	/**
	 * Method that returns xhtml
	 * 
	 * @name GetXhtml()
	 * @return xhtml
	 */
	public function GetXhtml() {
		return $this->m_xhtml;
	}
	
	/**
	 * Method that returns style
	 * 
	 * @name GetStyle()
	 * @return css script tag created by view
	 */
	public function GetStyle() {
		return $this->m_style;
	}
	
	/**
	 * Method that returns title
	 * 
	 * @name GetTitle()
	 * @return title
	 */
	public function GetTitle() {
		return $this->m_title;
	}
	
	/**
	 * Method that returns errors
	 * 
	 * @name GetErrors()
	 * @return error message generated by messageclass
	 */
	public function GetErrors() {
		return $this->m_errors;
	}
}